package com.www.applyword.adapter;

import android.content.Context;
import android.widget.EditText;

import androidx.recyclerview.widget.RecyclerView;

import com.classic.adapter.BaseAdapterHelper;
import com.classic.adapter.CommonRecyclerAdapter;
import com.www.applyword.R;
import com.www.applyword.bean.DynaminDetailsBean;
import com.www.applyword.ui.chat.DynamicDetailsActivity;

/**
 * author : huang
 * date   : 2019/10/21 0021 15:06
 * version: 1.0
 * @author Administrator
 */
public class DynamicReplyAdapter extends CommonRecyclerAdapter<DynaminDetailsBean.ForumCommentBeanX> {
    public DynamicDetailsActivity context;
    private String forumID;
    private EditText etSendComment;
    public String forumComment_parentID;
    private RecyclerView view;


    public DynamicReplyAdapter(Context context) {
        super(context, R.layout.item_list_dynamic_reply);
        this.context = (DynamicDetailsActivity) context;
    }


    @Override
    public void onUpdate(BaseAdapterHelper helper, DynaminDetailsBean.ForumCommentBeanX item, int position) {  //ForumComment_ReplyUserName
        helper.setText(R.id.tv_reply, (String) item.ForumComment_UserName +"回复" + item.ForumComment_ReplyUserName+ ": "
                                                      + item.ForumComment_Content);
    }
}

